package com.evola.rm.model
{
	import com.evola.rm.utils.Flags;

	import mx.collections.ListCollectionView;

	[Bindable]
	public class Alias
	{

		private static var DEFAULT_COLOR:uint=0x000000;

		public var name:String;
		public var code:String;
		public var color:uint=DEFAULT_COLOR;

		public function Alias()
		{
		}

		public function set colorHex(value:String):void
		{

			color=uint(value);
		}

		public function get colorHex():String
		{

			return color.toString(16);
		}

		public function copy():Alias
		{

			var a:Alias=new Alias();
			a.name=name;
			a.code=code;
			a.color=color;

			return a;
		}
	}
}
